﻿using System;
using System.Collections;
using System.Collections.Generic;

namespace Graph
{
    public class Vertex
    {
        public string Name { get; set; }
        public bool Mark { get; set; }
        public List<Edge> Edges;

        public Vertex(String name)
        {
            Name = name;
            Mark = false;
            Edges = new List<Edge>();
        }

        public void AddEdge(Edge edge)
        {
            Edges.Add(edge);
        }
    }
}

